home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OvCata.swf / scripts / frame_3 / PlaceObject2_155_309 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2005-08-04  |  721 b   |  42 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.level1._x > 298)
  3.    {
  4.       this._x = 300;
  5.    }
  6.    if(_root.levmoveR)
  7.    {
  8.       this._x -= 3;
  9.    }
  10.    if(_root.levmoveL)
  11.    {
  12.       this._x += 3;
  13.    }
  14.    if(_root.jumpR)
  15.    {
  16.       this._x -= 13;
  17.    }
  18.    if(_root.jumpL)
  19.    {
  20.       this._x += 13;
  21.    }
  22.    if(_root.sheep._x < this._x + 10)
  23.    {
  24.       if(_root.sheep._x > this._x - 10)
  25.       {
  26.          this.gotoAndPlay(37);
  27.          this._visible = false;
  28.       }
  29.    }
  30.    if(this._x < 0)
  31.    {
  32.       this.gotoAndPlay(1);
  33.       this._visible = false;
  34.    }
  35.    if(_root.getlife)
  36.    {
  37.       _root.sheeplife = _root.sheepBlizLife;
  38.       _root.getlife = false;
  39.       _root.life.gotoAndStop(1);
  40.    }
  41. }
  42.